import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
@Entity()
export class Tree {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({
    comment: '树木编号',
    nullable: true,
  })
  cardNo: string;

  @Column({
    comment: '树木类型',
    nullable: true,
  })
  treeType: string;

  @Column({
    comment: '样地',
    nullable: true,
  })
  address: string;

  @Column({
    comment: '地区编码',
    nullable: true,
  })
  chinaAddress: string;

  @Column({
    comment: '省份',
    nullable: true,
  })
  province: string;

  @Column({
    comment: '市',
    nullable: true,
  })
  city: string;

  @Column({
    comment: '县',
    nullable: true,
  })
  country: string;

  @Column({
    comment: '树径',
    nullable: true,
  })
  radius: number;

  @Column({
    comment: '树高',
    nullable: true,
    type: 'double',
  })
  height: number;

  @Column({
    comment: '碳汇含量',
    nullable: true,
    type: 'double',
  })
  carbon: number;

  @Column({
    comment: '树牌唯一标识（勿改)',
  })
  sign: string;
}
